import { MockAdapter } from '@/mock/mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'
const Random = Mock.Random;

// 获取应用数据
mock.onGet('v7/examine-typeappmenu').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, {
        name: 'db_appmenu1_appmenu',
        items:  [
            {
	id: '3CE457BF-1084-4F35-ABC2-56F2984630D9',
	name: 'menuitem1',
	text: '营地',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '营地',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: 'assets/images/camp.png',
	textcls: '',
	appfunctag: 'AppFunc2',
	resourcetag: '',
},
            {
	id: '8A515F8A-155D-4A59-8866-BAAF5A25DF23',
	name: 'menuitem2',
	text: '商家',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '商家',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: 'assets/images/business.png',
	textcls: '',
	appfunctag: 'AppFunc3',
	resourcetag: '',
},
            {
	id: '521B1C11-6292-45E2-86ED-2CDD2B367285',
	name: 'menuitem3',
	text: '体验点',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '体验点',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: 'assets/images/experiencestore.png',
	textcls: '',
	appfunctag: 'AppFunc4',
	resourcetag: '',
},
            {
	id: 'BB72D782-0943-4EB0-9093-B1FEB8AEB136',
	name: 'menuitem4',
	text: '农户',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '农户',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: 'assets/images/individual.png',
	textcls: '',
	appfunctag: 'AppFunc5',
	resourcetag: '',
},
        ],
    }];
});

